﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Prism.Events;

namespace YF_Music.Core.Events
{
  public class PublishCoreEvent
  {
    private readonly IEventAggregator eventAggregator;

    public PublishCoreEvent(IEventAggregator eventAggregator)
    {
      this.eventAggregator = eventAggregator;
    }
    public void PublishShowOnlyPlayEvent(bool onlyShow)
    {
      eventAggregator.GetEvent<OnlyPlayControlEvent>().Publish(onlyShow);

    }
    public void PublishIsFloatingVisibleEvent(bool isVisible)
    {
      eventAggregator.GetEvent<IsFloatingVisibleEvent>().Publish(isVisible);
    }
  }
}
